LOCAL_PATH:=$(call my-dir)

# Link to libX11
include $(CLEAR_VARS)
LOCAL_MODULE := libX11
LOCAL_SRC_FILES := ../../$(LOCAL_MODULE)/libs/$(TARGET_ARCH_ABI)/$(LOCAL_MODULE).so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../$(LOCAL_MODULE)/include
include $(PREBUILT_SHARED_LIBRARY)

# Now compile the stuff
include $(CLEAR_VARS)

LOCAL_MODULE:=libXpm

LOCAL_SRC_FILES := \
	Attrib.c					\
	CrBufFrI.c					\
	CrBufFrP.c					\
	CrDatFrI.c					\
	CrDatFrP.c					\
	CrIFrBuf.c					\
	CrIFrDat.c					\
	CrIFrP.c					\
	CrPFrBuf.c					\
	CrPFrDat.c					\
	CrPFrI.c					\
	Image.c						\
	Info.c						\
	RdFToBuf.c					\
	RdFToDat.c					\
	RdFToI.c					\
	RdFToP.c					\
	WrFFrBuf.c					\
	WrFFrDat.c					\
	WrFFrI.c					\
	WrFFrP.c					\
	XpmI.h						\
	create.c					\
	data.c						\
	hashtab.c					\
	misc.c						\
	parse.c						\
	rgb.c						\
	rgbtab.h					\
	scan.c

LOCAL_SHARED_LIBRARIES:=\
	libX11

include ../libX11/libX11.mk

include $(BUILD_SHARED_LIBRARY)
